import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 列表查询
export const getList = (params) => axios.post(`${SERVER.WHOLESALES}/BigCustomerOrder/queryList/orderDetail`, params)
// 查询详情
export const getDetail = (params) => axios.get(`${SERVER.WHOLESALES}/BigCustomerOrder/getBigCustomerOrderById`, { params })
// 查询操作记录
export const queryOrderLog = (params) => axios.get(`${SERVER.WHOLESALES}/commonMethod/queryOrderLog?orderId=${params}`, { params })

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
//  导出
export const exportList = (params) => axios.post(`${SERVER.WHOLESALES}/BigCustomerOrder/exportOemQueryDetailList`, params, { responseType: 'blob' })


//获取订单细分类型
export const getOrderDetailType = (params) => axios.get(`${SERVER.WHOLESALES}/baseData/getFiOrderTypeSub`, { params })
// 获取经销商收车地址
export const getDealerAddress = (params) => axios.get(`${SERVER.WHOLESALES}/baseData/getDealerAddress`, {params})
//获取经销商余额池
export const getAmount = (params) => axios.get(`${SERVER.WHOLESALES}/baseData/getAmount`, {params})
// 查询经销商资金账户
export const getFiAccountType = (params) => axios.get(`${SERVER.WHOLESALES}/baseData/getFiAccountType`, {params})
// 查询增补订单提报订单明细资金
export const getOrderDetailAmount = (params) => axios.post(`${SERVER.WHOLESALES}/baseData/getOrderDetailAmount`, params)


// 车辆配置五级选择
export const vehicleConfiguration = (id, params) => axios.get(`${SERVER.BASEDATA}/vehicleProduct/productInfo/productTreeNew`, { params: { type: id, level: 6, ...params } });
// 获取订单细分类型
export const getNotPage = (params) => axios.get(`${SERVER.WHOLESALES}/fiOrderTypeSub/searchFiOrderTypeSubDTOListNotPage`, { params })

// // 查询经销商列表
export const getDearList = params => axios.get(`${SERVER.CMSCLOUD_CHANNEL}/message/dealerAttach/dealerInfo/byAllInfo`, { params });